package demo04.BeverageDecorator;

import demo04.BeverageDecorator.Beverage.Size;

public class StarbuzzCoffee {

	public static void main(String[] args) {
		Beverage beverage = new Decaf();
		System.out.println(beverage.getDescriPtion() 
				+ " $" + String.format("%.2f", beverage.cost()));
 
		Beverage beverage2 = new DarkRoast();
		beverage2 = new Mocha(beverage2);
		beverage2 = new Mocha(beverage2);
		beverage2 = new Milk(beverage2);
		System.out.println(beverage2.getDescriPtion() 
				+ " $" + String.format("%.2f", beverage2.cost()));
 
		Beverage beverage3 = new Decaf();
		beverage3.setSize(Size.VENTI);
		beverage3 = new Soy(beverage3);
		beverage3 = new Mocha(beverage3);
		beverage3 = new Milk(beverage3);
		System.out.println(beverage3.getDescriPtion() 
				+ " $" + String.format("%.2f", beverage3.cost()));

		/*
		Decaf Coffee $1.05
		Dark Roast Coffee, Mocha, Mocha, Milk $1.49
		Decaf Coffee,soy, Mocha, Milk $1.55
		*/
	}

}
